package com.seata.cloud.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("storage")
public class Storage {

    @TableId("id")
    private Long id;

    /**
     * 产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 总库存
     */
    @TableField("total")
    private Integer total;

    /**
     * 已用库存
     */
    @TableField("used")
    private Integer used;

    /**
     * 剩余库存
     */
    @TableField("residue")
    private Integer residue;
    
}
